package com.zjhome.cloudnote.service;

import org.apache.ibatis.annotations.Param;

import com.zjhome.cloudnote.domain.UserInfo;

/**
 * 用户服务
 * 
 * @author 0283000121
 *
 */
public interface UserService {
	/**
	 * 根据id 查询用户
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	UserInfo selectUserById(String id) throws Exception;
	
	
	/**
	 * 添加新用户
	 * 
	 * @param user	用户信息
	 * @return
	 * @throws Exception
	 */
	int	insertUserByParam(UserInfo user) throws Exception;
	
	/**
	 * 更新用户信息
	 * 
	 * @param user	用户信息
	 * @return
	 * @throws Exception
	 */
	int updateUserByParam(UserInfo userInfo) throws Exception;
	
	/**
	 * 删除用户
	 * 
	 * @param id	用户id
	 * @return
	 * @throws Exception
	 */
	int deleteUserById(String id) throws Exception; 

}
